<form class="layui-form model-form" action="">
	<input name="id" id="id" type="hidden" value="{$info.id|default=0}">
	<div class="layui-form-item">
		<label class="layui-form-label">广告封面：</label>
		{upload:image name="cover|封面|90x90|建议上传尺寸450x450" value="isset($info['cover_url']) ? $info['cover_url'] : ''"}
	</div>
	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">广告位：</label>
			<div class="layui-input-inline">
				{common:select param="sort_id|1|广告位|name|id" data="$sortList" value="isset($info['sort_id']) ? $info['sort_id'] : 0"}
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">URL地址：</label>
			<div class="layui-input-inline">
				<input name="url" id="url" value="{$info.url|default=''}" lay-verify="required" autocomplete="off" placeholder="请输入地址链接" class="layui-input" type="text">
			</div>
		</div>
	</div>
	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">广告标题：</label>
			<div class="layui-input-inline">
				<input name="title" id="title" value="{$info.title|default=''}" lay-verify="required" autocomplete="off" placeholder="请输入广告标题" class="layui-input" type="text">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">广告类型：</label>
			<div class="layui-input-inline">
				{common:select param="type|1|广告位|name|id" data="$typeList" value="isset($info['type']) ? $info['type'] : 0"}
			</div>
		</div>
	</div>
	<div class="layui-form-item layui-form-text" style="width:625px;">
		<label class="layui-form-label">广告描述：</label>
		<div class="layui-input-block">
			<textarea name="description" id="description" placeholder="请输入广告位描述" class="layui-textarea">{$info.description|default=''}</textarea>
		</div>
	</div>
	<div class="layui-form-item" style="width:1000px;">
		<label class="layui-form-label">广告内容：</label>
		<div class="layui-input-block">
			<textarea name="content" id="content" lay-verify="required" class="layui-textarea">{$info.content|default=''}</textarea>
			{editor:kindeditor name="content" type="default" width="100%" height="350"}
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">序号：</label>
		<div class="layui-input-inline">
			<input name="sort" id="sort" value="{$info.sort|default=125}" lay-verify="required|number" autocomplete="off" placeholder="请输入序号" class="layui-input" type="text">
		</div>
	</div>
	{widget:submit name="submit|立即保存,close|关闭"}
</form>
